<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>th:object -></h1>
<p th:object="${user}">
  <span th:text="*{id}">1</span><span th:text="*{name}">a</span>
</p>

</body>
</html>